import {
    getInspectorAll,
    getInspectorArr,
    updataInspectorById,
    deleteInspectorById,
    deleteInspectorMoreById,
    SearchInspectorKey,
    addInspector,
  } from "../../api/inspector.js";
  import { verifyToken } from "../../utils/TokenCheck.js";
  
  export default function inspectorRouter(router) {
    // 获取全部居民信息
    router.get("/getInspectorAll", verifyToken, getInspectorAll);
    // 分页查询居民信息
    router.post("/getInspectorPage", verifyToken, getInspectorArr);
    // 修改指定id居民信息
    router.post("/updataInspectorById", verifyToken, updataInspectorById);
    // 删除指定id居民信息
    router.delete("/deleteInspectorById/:id", verifyToken, deleteInspectorById);
    // 批量删除指定id居民信息
    router.post("/deleteInspectorMoreById", verifyToken, deleteInspectorMoreById);
    // 根据key-value分页查询指定居民信息
    router.post("/SearchInspectorKey", verifyToken, SearchInspectorKey);
    // 添加居民信息
    router.post("/addInspector", verifyToken, addInspector);
  }
  